Fix bug #15933 with crashes in file-notify-tests on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Thu, 28 Nov 2013 19:40:15 +0000 (21:40 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 28 Nov 2013 19:40:15 +0000 (21:40 +0200)
commitc74e54e4e3d844cc4067ca27c8c20b6e4338ddea
treecc700b695813a72099995e50616a0e1ae52db40f
parent5ef95e852054a98d8d8e769bc79d5e2c4427998a
Fix bug #15933 with crashes in file-notify-tests on MS-Windows.

 Support w32 file notifications in batch mode.
 src/w32proc.c (sys_select): Don't wait on interrupt_handle if it is
 invalid (which happens in batch mode).  If non-interactive, call
 handle_file_notifications to store file notification events in the
 input queue.
 src/w32notify.c (send_notifications): Handle FRAME_INITIAL frames as
 well.
 src/w32inevt.c (handle_file_notifications): Now external, not
 static.
 src/w32term.h (handle_file_notifications): Provide prototype.
 src/emacs.c (main) [HAVE_W32NOTIFY]: When non-interactive, call
 init_crit, since init_display, which does that otherwise, is not
 called.
src/ChangeLog
src/emacs.c
src/w32inevt.c
src/w32notify.c
src/w32proc.c
src/w32term.h